{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="content-tabs">
				<ol class="breadcrumb">
					<li>
						<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
					</li>
					<li>
						<a href="{:url('index')}">提现列表</a>
					</li>
					<li>
						<strong>提现详情</strong>
					</li>
				</ol>
	        </div>
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('edit')}">
					<input type="hidden" name="id" value="{$ad.id}" />
					<div class="form-group">
						<label class="col-sm-3 control-label">提现人：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="id" name="id" value="{$ad.id}" readonly="readonly" class="form-control" />
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-3 control-label">用户类型：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="user_type" name="user_type" value="{$ad.user_type}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">提现金额：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="balance" name="balance" value="{$ad.balance}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">实际到账：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="actual_balance" name="actual_balance" value="{$ad.actual_balance}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">手续费：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="counter_fee" name="counter_fee" value="{$ad.counter_fee}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">提现类型：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="type" name="type" value="{$ad.type}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">提现账户：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="cash_type" name="cash_type" value="{$ad.cash_type}" readonly="readonly" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">申请时间：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="createtime" name="createtime" value="{$ad.createtime}" readonly="readonly" class="form-control" />
						</div>
					</div>
  					<div class="form-group">
                      	<label class="col-sm-3 control-label">处理提现</label>
                            <div class="col-sm-4 input-group">
                     			<select class="input-sm form-control input-s-sm inline">
                                    <option value="1">处理成功</option>
                                    <option value="2">处理失败</option>
                                </select>
                            </div>
	              	</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">上传凭证：</label>
						<div class="input-group col-sm-4">
							<input type="hidden" id="thumb" name="thumb" value="{$ad.thumb}"/>
							<input id="upload" name="upload" type="file" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">处理留言：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="remark" name="remark" value="{$ad.remark}" class="form-control" />
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 处理</button>&nbsp;&nbsp;
							<a href="{:url('index')}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script>
	upload_one('{$ad.thumb}');
	$(function() {
		$("#myForm").validate({
			rules: {
				title: "required",
				type:"required"
			},
			messages: {
				title: ICON.error + "请输入标题",
				type:ICON.error + "请选择类型"
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
{/block}